export default {
  namespaced: true,
  state: {
    zhengqueCount: 0,
    cuowuCount: 0,
  },
  mutations: {
    addZhengqueCount(state) {
      state.zhengqueCount++;
    },
    addCuowuCount(state) {
      state.cuowuCount++;
    },
  },
  actions: {
    addZhengqueCount({commit}) {
      commit('addZhengqueCount')
    },
    addCuowuCount({commit}) {
      commit('addCuowuCount')
    }
  },
  getters: {
    zhengqueCount: state => {
      return state.zhengqueCount
    }, cuowuCount: state => {
      return state.cuowuCount
    }
  }
}
